package com.jarchie.androiddev.ui.adapters

import com.bumptech.glide.Glide
import com.jarchie.androiddev.model.BannerData
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

class ImageAdapter(val list: List<BannerData>) : BannerImageAdapter<BannerData>(list) {
    override fun onBindView(
        holder: BannerImageHolder,
        data: BannerData,
        position: Int,
        size: Int
    ) {
        Glide.with(holder.itemView).load(data.icon).load(holder.imageView)
    }
}